import * as options from './options';
/*
 * @Author: qiahao
 * @Date:
 * @Last Modified by: qiahao
 * @Last Modified time:
*/


/**
 *
 * @description 工具函数
 * @param options
 */
export function getMapFromOptions(options: any) {
  return options.reduce((a: any, b: any) => {
    a[b.value] = b.text;
    return a;
  }, {});
}
